package com.cdx.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author chedx
 * @data 2020/12/5 9:24 PM
 */
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/payment/consul")
    public String getZookeeper() {
        return "spring cloud 链接consul ， 端口号：" + serverPort + UUID.randomUUID();
    }

}
